package lab04.test02;

public class Test1 extends Thread {

    public void run(){
        //每隔一秒向控制台输出“hello，world!”
        while (true){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("Hello,World");
        }

    }

}
